﻿using System;
using System.Windows.Forms;
using PureMVC.Interfaces;
using PureMVC.Patterns;
using Spring.Context.Support;

namespace Spring.PureMVC.DynamicContext.Test
{
    /// <summary>
    /// Entry point application.
    /// </summary>
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            using (ContextRegistry.GetContext())
            {
            }
        }

        public static void Greeting(INotification notification)
        {
            MessageBox.Show(notification.Body.ToString(), notification.Type, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
